/**
 * Created by observer on 15/10/16.
 */
var mItem = $(".menu-item"),
    sItem = $(".submenu");

mItem.on("mouseenter",function(){
    $(this).addClass("menu-hover")
        .next().css("display","block");
});
mItem.on("mouseleave",function(){
    $(this).removeClass("menu-hover")
        .next().css("display","none");
});
sItem.on("mouseenter",function(){
    $(this).css("display","block")
        .prev().addClass("menu-hover");
});
sItem.on("mouseleave",function(){
    $(this).css("display","none")
        .prev().removeClass("menu-hover");
});
